package com.fc.entity.output;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fc.enums.CategoryEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class CategoryOutput {

    @Schema(title = "分类id")
    private Long id;

    @Schema(title = "分类名称")
    private String name;

    @Schema(title = "分类类型（STAR、ITEM）")
    private CategoryEnum type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(title = "创建时间")
    private LocalDateTime createTime;
}
